﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dllTeamTard
{
    public class Venue
    {
        #region champs

        private string _id = "inconnu";

        private string _lienImage = "inconnu";

        private string _lienWeb = "inconnu";

        private string _numeroTel = "inconnu";

        private string _name = "inconnu";

        private Location _uneLocation = null;

        private int _nbEvent = 0;

        private List<Event> _lesEvents = new List<Event>();

        #endregion

        #region proprieté
        public string numeroTel
        {
            get { return _numeroTel; }
            private set { _numeroTel = value; }
        }
        public int nbEvent
        {
            get { return _nbEvent; }
            private set { _nbEvent = value; }
        }

        public List<Event> lesEvents
        {
            get { return _lesEvents; }
            internal set { _lesEvents = value; }
        }

        public string id
        {
              get { return _id; }
            private set { _id = value; }
        }

        public string lienImage
        {
            get { return _lienImage; }
            private set { _lienImage = value; }
        }

        public string lienWeb
        {
            get { return _lienWeb; }
            private set { _lienWeb = value; }
        }
        public string name
        {
            get { return _name; }
            private set { _name = value; }
        }

        public Location uneLocation
        {
            get { return _uneLocation ; }
            private set { _uneLocation = value; }
        }

        #endregion

        #region constructeur

        public Venue()
        {
        }

        public Venue(string id,string lienWeb,string lienImage)
        {
            this.id = id;
            this.lienWeb = lienWeb;
            this.lienImage = lienImage;
        }

        public Venue(string id, string lienWeb, string lienImage,string numeroTel)
        {
            this.id = id;
            this.lienWeb = lienWeb;
            this.lienImage = lienImage;
            this.numeroTel = numeroTel;
            
        }
        #endregion

        #region methodes
        public void addEvent(Event unEvent)
        {
            if (lesEvents == null)
                lesEvents = new List<Event>();
            lesEvents.Add(unEvent);
            
        }



        #endregion

        #region methodes redefinies

        #endregion

        #region Accesseur
        internal List<Event> getEvent()
        {
            return lesEvents;
        }
        #endregion
    }
}
